# -*- coding:utf-8 -*-
# @Time : 2020/8/10 8:25
# @Author : Administrator
# @File : urls.py
# @Software: PyCharm
# @Motto: good good study,day day up

from django.urls import path, include
from rest_framework import routers
from . import views

app_name = 'courses'

router = routers.DefaultRouter()
router.register('courses', views.CourseViewSet)


urlpatterns = [
    path('subjects/', views.SubjectListView.as_view(), name='subject_list'),
    path('subjects/<pk>/', views.SubjectDetailView.as_view(), name='subject_detail'),
    path('', include(router.urls)),
]
